﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Man adam = new Man(null, null, "adam");
            Console.WriteLine(adam.MyInfo());
            Woman eva = new Woman(null, null, "eva");
            Console.WriteLine(eva.MyInfo());
            Console.ReadLine();
        }
    }


    class Human
    {
        
        string Name;
        
        Man Father;
        Woman Mother;


        public Human(Man father, Woman mother, string name)
        {
            Name = name;
            Father = father;
            Mother = mother;
        }

        public string MyInfo()
        {
            string result = "";
            result += " Привет!\n";

            result += "меня зовут"+Name+"\n";
            return result;
        }

    }
    class Man : Human
    {
        public Man(Man father, Woman mother, string name)
            : base(father, mother, name)
        {
        }
    }
    class Woman : Human
    {public Woman(Man father, Woman mother, string name):base (father, mother, name){}

    }
 
     
}
